<template>
<s-layout
    navbar="user"
     tabbar="pages/index/user"
  >
   <videos></videos>
  </s-layout>
<!--  <view :style="style" class="comtain" >
	  <view class="videolist">
	  </view>
	    <s-tabbar style="z-index: 999999;"  path="pages/index/user" />
   </view>' -->
  
</template>

<script setup>
   import videos from './video.nvue';
  import { computed ,ref} from 'vue';
  import { onShow,onLoad, onPageScroll, onPullDownRefresh } from '@dcloudio/uni-app';
  import sheep from '@/sheep';

  // 隐藏原生tabBar
  uni.hideTabBar();
  const style=ref()

  
  onLoad(()=>{
	 const res = uni.getSystemInfoSync();
	 style.value = "height:" + (res.windowHeight-50) + "px;" 
  })

  // const template = computed(() => sheep.$store('app').template.user);
  // console.log(template.style);
  // const isLogin = computed(() => sheep.$store('user').isLogin);

  // onShow(() => {
  //   sheep.$store('user').updateUserData();
  // });

  onPullDownRefresh(() => {
    sheep.$store('user').updateUserData();
    setTimeout(function () {
      uni.stopPullDownRefresh();
    }, 800);
  });

  onPageScroll(() => {});
</script>

<style></style>

<style lang="scss" scoped>

	// .comtain{
	// 	position: relative;
	// }
	// .videolist{
	// 	position: absolute;
	// 	top: 0;
	// }
</style>
